﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class doctor_papers : System.Web.UI.Page
{
    protected Doctor doc;
    protected int SortID;
    protected void Page_Load(object sender, EventArgs e)
    {
        doc = Doctor.Check();
        if (doc == null)
        {
            Session.Add(Params.SystemError, "请先登录");
            Response.Redirect(Params.RootHttp + "default.aspx");
        }
        if (!Page.IsPostBack)
        {
            this.MyDataBind();
        }
    }

    public void MyDataBind()
    {
        this.Title = this.doc.RealName + "-论文列表";
        this.conNav.Title = "论文列表";
        this.SortID = 1;
        string sql = "select u.Guid from Users u Join Student s on u.Guid=s.UserGuid where s.ExpertGuid=" + this.doc.Guid + " order by u.UserID asc";
        DataTable dt = Fun.CreateDt(sql);
        this.repPapers.DataSource = dt;
        this.repPapers.DataBind();
    }
}
